package org.op.service.config;

import java.util.Properties;

public interface ConfigurationService {
	
	public static final String FILE_SEP = System.getProperty("file.separator");

	/**
	 *  Return a list of application properties
	 * 
	 * @return
	 */
	public Properties getApplicationProperties();
	
	/**
	 * 
	 *  Returns a single property
	 * 
	 * @param key
	 * @return
	 */
	public String getProperty(String key);
	
	/**
	 *  Persist changes to a certain property
	 * 
	 * @param propertyName
	 * @param value
	 */
	public void updateProperty(String propertyName, String value) throws Exception;
	
	/**
	 *  Gets the absolute filepath to the application configuration home directory
	 * 
	 * @return
	 */
	public String getApplicationHome();
	
	
}
